package com.liyiruo;

import org.apache.log4j.Logger;

/**
 * @author liyiruo
 * @Description
 * @Date 2024/6/2 上午12:03
 */
public class Log4jMain {

    private static Logger logger = Logger.getLogger(Log4jMain.class);

    public static void main(String[] args) {

        // 记录debug级别的信息
        logger.debug("This is debug message.");
        // 记录info级别的信息
        logger.info("This is info message.");
        // 记录error级别的信息
        logger.error("This is error message.");
    }
}
